ALTER TABLE dbo.EventLog ADD CONSTRAINT
     FK_EventLog_EventLogType FOREIGN KEY ( EventLogTypeId ) 
          REFERENCES dbo.EventLogType ( EventLogTypeId ) 
          ON UPDATE  NO ACTION 
          ON DELETE  NO ACTION 
GO
